home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-10-10 | 8.5 KB | 102 lines | [TEXT/RLAB] |
- INTRO:
-
- Introduction to RLaB "Our"-LaB.
-
- RLaB is a vector and matrix oriented, interactive, interpreted
- programming LANGUAGE. Although RLaB started as an effort to
- functionally replace MATLAB, the language and functions are
- NOT MATLAB replicas. Although the language is similar to
- MATLAB in some ways there are numerous differences (I hope for
- the better). The help file MATLAB_DIFF briefly discusses the
- primary differences between RLaB and MATLAB. If you are a
- MATLAB expert please read the MATLAB_DIFF file ASAP.
-
- The RLaB Primer is also a good starting point for new users.
- It is short, and provides many introductory examples.
-
- Using RLaB:
-
- To get this far you must already be running RLaB. At this
- point you are using the command line interface. When RLaB
- confronts you with the command line prompt (`>') it is ready
- to accept any valid statement. As soon as a valid statement is
- recognized, RLaB will execute it. For example
-
- > a = sqrt(2)
- a =
- 1.41
-
- The right-hand-side (RHS) of the expression is evaluated, and
- the result is assigned to `a' immediately.
-
- There are several data types. You do NOT need to declare
- variable types, just use them (the variable(s)) in the proper
- context. In the previous example `a' was a scalar. In the
- following example `a' will be used as a matrix:
-
- > a = [1,2,3;4,5,6;7,8,9]
- a =
- matrix columns 1 thru 3
- 1 2 3
- 4 5 6
- 7 8 9
-
- The previous example created a matrix and stored it in the
- variable (entity) `a'. The previous entity that `a'
- represented (sqrt(2)) is destroyed.
-
- You can use most math operators like you would in C:
-
- a + b Addition
- a - b Subtraction
- a * b Matrix Multiplication
- a .* b Matrix element-by-element multiply
- a / b Right Division
- a ./ b Element-by-element Right Division
- a \ b Left Division
- a .\ b Element-by-element Left Division
- a^b Power
- a.^b Element-by-element power
- -a Unary minus (negation)
- +a Unary plus
- a' Matrix transpose (Hermitian transpose)
- a.' Matrix element-by-element transpose
-
- To see all of the available functions type `what()'. Try using
- some:
-
- > what()
- abs error log10 plot3 solve
- acos eval logspace plprint sort
- acosh exist lu plptex sprintf
- all exp lyap plscol0 sqrt
- any eye max plsfile srand
- asin factor maxi plstyle std
- asinh fft mean plwid strsplt
- atan filter members poly strtod
- atan2 find min printf subplot
- atanh finite mini printmat sum
- backsub fix mod prod svd
- balance floor nan pstart sylv
- cd format norm ptitle symm
- ceil fprintf num2str putenv system
- chol fread ode pwin tan
- class fseek ones qr tanh
- clear fvscope open rand tic
- clearall getb pause rank tmpnam
- close getenv pclose rcond toc
- compan getline pend read trace
- complement hess pl3d readb tril
- conj hilb plalt readm triu
- cos ifft plaspect real type
- cosh imag plaxis redit union
- cross inf plaz replot what
- cumprod input plcont reshape who
- cumsum int plegend round whos
- det int2str plerry save write
- diag intersection plfont schord writeb
- diary inv plgrid schur writem
- diff isempty plgrid3 set xlabel
- disp isinf plhist show ylabel
- dlopen isnan plhistx showpwin zeros
- dot issymm pl